package com.aisile.service;

import com.aisile.admin.AdChannelApi;
import com.aisile.model.admin.dtos.ChannelDto;
import com.aisile.model.admin.pojos.AdChannel;
import com.aisile.model.common.dtos.ResponseResult;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface AdChannelService extends IService<AdChannel> {
    //全查频道
    public ResponseResult findAll(@RequestBody ChannelDto channelDto);
    //添加频道
    public ResponseResult saveAdChennal(@RequestBody AdChannel adChannel);
    //修改频道
    public ResponseResult updateAdCennal(@RequestBody AdChannel adChannel);

    //删除频道
    public ResponseResult deleteAdCennal(@PathVariable int id);
    //批量删除频道
    public ResponseResult delManyAdCennal(@RequestBody List<Integer> list);
    //查找id
    public ResponseResult getbyId(@PathVariable int id);
}
